package org.eae.eldf.service.base;

import java.util.List;

import org.eae.eldf.entity.base.BaseCompanyLinkman;
import org.eae.eldf.framework.exception.ServiceException;
import org.eae.eldf.framework.pager.Pagination;
import org.eae.eldf.framework.service.BaseService;

public interface BaseCompanyLinkmanService extends BaseService<BaseCompanyLinkman> {
	
	/**
	 * 分页查询 baseCompanyLinkman
	 * @param pager
	 * @param baseCompanyLinkman
	 * @return
	 */
	public Pagination<BaseCompanyLinkman> pageLinkmanList(Pagination<BaseCompanyLinkman> pager,String SearchValue);
	
	/**
	 * 删除联系人
	 */
	public void delete(Long id);
	
	/**
	 *获取联系人id
	 */
	public BaseCompanyLinkman findById(Long id);
	
	/**
	 * 插入联系人
	 * @param baseCompanyLinkman
	 * @return
	 * @throws ServiceException
	 */
	public Long insertBaseCompanyLinkman(BaseCompanyLinkman baseCompanyLinkman)throws ServiceException;
	
	/**
	 * 编辑联系人
	 * @param baseCompanyLinkman
	 * @return
	 * @throws ServiceException
	 */
	public void updateBaseCompanyLinkman(BaseCompanyLinkman baseCompanyLinkman)throws ServiceException;
	
	/**
	 * 通过companyCode获取对应人员
	 * @Date        :      2016-6-14
	 * @param baseCompanyCode
	 * @return
	 */
	public List<BaseCompanyLinkman> findLinkmanByCompanyCode(String baseCompanyCode);
}
